import { createRouter, createWebHistory } from 'vue-router'


const routes = [
  {
    path: "/",
    name: "main",
    component: () => import("../views/MainView.vue"),
  },
  {
    path: "/sign_in",
    name: "sign-in",
    component: () => import("../views/SignInView.vue"),
  },
  {
    path: "/sign_up",
    name: "sign-up",
    component: () => import("../views/SignUpView.vue"),
  },
  {
    path: "/home",
    name: "home-page",
    component: () => import("../views/HomeView.vue"),
  },
  {
    path: "/search/setup",
    name: "search-setup",
    component: () => import("../views/SearchSetupView.vue"),
  },
  {
    path: "/search/results",
    name: "search-results",
    component: () => import("../views/SearchResultsView.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
